/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ihale.satinalmaci;

import org.ihale.database.Database;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;


/**
 *
 * @author Mehmet Sinan
 */


public class SatinAlmaci {
    private int id;
    private String sirketAdi;
    private String adres;
    private String webSite;
    private String ilgiliKisi;
    private String sifre;
    private String kullaniciAdi;
    private String eposta; 
 
    public SatinAlmaci(int id, String sirketAdi, String adres, String webSite, String ilgiliKisi, String sifre, String kullaniciAdi, String eposta) {
        this.id = id;
       
        this.sirketAdi = sirketAdi;
        this.adres = adres;
        this.webSite = webSite;
        this.ilgiliKisi = ilgiliKisi;
        this.sifre = eposta+"654321";
        this.kullaniciAdi = eposta;
        this.eposta=eposta;
    }
    
     public SatinAlmaci() {
    }

    public String getEposta() {
        return eposta;
    }

    public void setEposta(String eposta) {
        this.eposta = eposta;
        setSifre( eposta+"654321");
        setKullaniciAdi(eposta);
    }
    
   
    public String getAdres() {
        return adres;
    }

    public void setAdres(String adres) {
        this.adres = adres;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIlgiliKisi() {
        return ilgiliKisi;
    }

    public void setIlgiliKisi(String ilgiliKisi) {
        this.ilgiliKisi = ilgiliKisi;
    }

    public String getKullaniciAdi() {
        return kullaniciAdi;
    }

    public void setKullaniciAdi(String kullaniciAdi) {
        this.kullaniciAdi = kullaniciAdi;
    }

    public String getSifre() {
        return sifre;
    }

    public void setSifre(String sifre) {
        this.sifre = sifre;
    }

    public String getSirketAdi() {
        return sirketAdi;
    }

    public void setSirketAdi(String sirketAdi) {
        this.sirketAdi = sirketAdi;
    }

    public String getWebSite() {
        return webSite;
    }

    public void setWebSite(String webSite) {
        this.webSite = webSite;
    }


 
}
